import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:im_flutter_sdk_example/jsonserialize/project/data.dart';
import 'package:im_flutter_sdk_example/pages/expert/widgets/main_title.dart';

class Introduction extends StatelessWidget {
  final ProjectItem item;
  const Introduction({Key key, this.item}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Container(
          margin: EdgeInsets.only(top: 10),
          color: Colors.white,
          child: Column(
            children: [
              MainTitle(title: '详情介绍'),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Html(data: item.detail),
                // child: RichText(
                //   text: HTML.toTextSpan(
                //     context,
                //     item.detail,
                //   ),
                // ),
              )
            ],
          ),
        ),
      ],
    );
  }
}
